package com.itlong.cloud;

import com.itlong.cloud.network.tcp.netty.ParkingServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import java.io.IOException;

@SpringBootApplication
@EnableEurekaClient
@EnableCircuitBreaker
public class CommomServerApplication {
    public static void main(String[] args) throws InterruptedException, IOException {
        SpringApplication.run(CommomServerApplication.class, args);
        int port = 2222;
        new Thread(() -> {
            new ParkingServer().run(port);
        }).start();
    }
}
